"""
Vehicle 模块 - PicknBuy24 扩展数据映射器
"""
from axiom_boot.database.base_mapper import BaseMapper
from axiom_boot.di import mapper
from ..models.vehicle_picknbuy24 import VehiclePicknbuy24


@mapper()
class VehiclePicknbuy24Mapper(BaseMapper[VehiclePicknbuy24]):
    """PicknBuy24 车辆扩展信息数据映射器 - 极简设计，只依赖 BaseMapper"""
    
    async def find_by_ref_no(self, ref_no: str) -> VehiclePicknbuy24 | None:
        """根据ref_no查找车辆"""
        return await self.find_one_by_filters(ref_no=ref_no)